﻿using System;
using System.Data;
using System.Linq;
using WeBlog.DataContext;
using WeBlog.Interfaces;
using WeBlog.Models;

namespace WeBlog.Repositories
{
    public class CommentRepository : RepositoryBase<PostComment>
    {        
        public CommentRepository(IUnitOfWork unitOfWork) : base( unitOfWork )
        {        
        }

        public PostComment FindById(int id)
        {
            return FindAll().SingleOrDefault(x => x.PostCommentId == id);
        }        
    }
}
